package object;

/**
 * @TODO  2. 当前日期三天后的日期
 * @Author xu
 * 2025/3/10
 */

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class LocalDate02 {
    public static void main(String[] args) {
        LocalDateTime currentDateTime = LocalDateTime.now();
        LocalDateTime futureDateTime = currentDateTime.plusDays(3);

        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH:mm:ss");
        System.out.println("当前日期三天后的日期是: " + futureDateTime.format(formatter));
    }
}
